package com.mezz.bones.im.gateway.attr;

import com.mezz.bones.im.common.message.base.MessageHeader;
import com.mezz.bones.im.common.domain.user.ImUserConnectInfo;
import io.netty.util.AttributeKey;

import java.util.Map;

/**
 * @Author: zhuang
 * @Date: 2024/12/2 17:41
 * @Description: TODO
 * @Version: 1.0
 **/

public class ChannelAttributes {

    // 定义所有需要的AttributeKey，作为常量池管理
    public static final AttributeKey<Map<String, MessageHeader>> HEADER = AttributeKey.newInstance("header");
    public static final AttributeKey<ImUserConnectInfo> USER_INFO = AttributeKey.valueOf("user_info");

    public static final AttributeKey<Long> CHANNEL_READ_TIME = AttributeKey.valueOf("channel_read_time");
    public static final AttributeKey<Boolean> USERINFO_INIT = AttributeKey.valueOf("userinfo_init");
    public static final AttributeKey<String> USER_IP = AttributeKey.valueOf("user_ip");
    public static final AttributeKey<String> APPID = AttributeKey.valueOf("appid");

}